<?php
/**
 * Created by PhpStorm.
 * User: wangkaihui
 * Date: 2017/7/4
 * Time: 11:17
 */
define("RUN_CLI", 1);
php_sapi_name() != 'cli' && exit('no access!');
require_once str_replace("shell", "", dirname(__FILE__)) . "/public/index.php";

//saveInit("cache.memcache.server.two.ip", "127.0.0.1");

//saveInit
//saveSysData
//My::config()->getSysdata
//getSysData

//$configDefault = My_Config::getInstance()->getSysdata();
//$config = [];
//My_Tool::changeArray2One($configDefault,$config);
//if($config){
//    foreach ($config as $k=>$v){
//        Home::service()->getCommon()->saveSysData($k, $v);
//    }
//}
//Home::service()->getCommon()->getSysData();

$sysDefault = My::config()->getInit();
$config = array();
var_dump($sysDefault);
My_Tool::changeArray2One($sysDefault,$config);
var_dump($config);

